import request from '@/utils/request'
// 获取树结构
export function GetTreeAPI(params) {
  return request({
    url: '/system/modeling/listChildren',
    method: 'GET',
    params
  })
}

// 列表
export function GetListAPI(params) {
  return request({
    url: '/system/modeling/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/system/modeling',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/system/modeling/edit',
    method: 'PUT',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/system/modeling/' + data,
    method: 'DELETE'
  })
}

// 详情
export function GetDetailsAPI(data) {
  return request({
    url: '/system/modeling/' + data,
    method: 'GET'
  })
}

// 详情
export function GetWarehouseAPI(params) {
  return request({
    url: '/storage/warehouse/list',
    method: 'GET',
    params
  })
}

// 分切车间查询
export function GetCutShopModelingAPI(params) {
  return request({
    url: 'system/modeling/getCutShopModeling',
    method: 'GET'
  })
}

// 线边仓
export function GetXianbianAPI(params) {
  return request({
    url: 'production/lineWarehouse/lineList',
    method: 'GET',
    params
  })
}
